2008-11-07 Johan Dahlin <jdahlin@async.com.br>
* gtk/gtkcontainer.c (gtk_container_buildable_add_child):
Check for child->parent instead of GTK_WIDGET_TOPLEVEL.
svn path=/trunk/; revision=21771
+2008-11-07 Johan Dahlin <jdahlin@async.com.br>
+
+ * gtk/gtkcontainer.c (gtk_container_buildable_add_child):
+ Check for child->parent instead of GTK_WIDGET_TOPLEVEL.
+
2008-11-07 Michael Natterer <mitch@imendio.com>
* gtk/gtkscrollbar.c: remove bogus newlines in the middle of
{
GTK_BUILDER_WARN_INVALID_CHILD_TYPE (buildable, type);
}
- else if (GTK_IS_WIDGET (child) && GTK_WIDGET_TOPLEVEL (child) == FALSE)
+ else if (GTK_IS_WIDGET (child) && GTK_WIDGET (child)->parent == NULL)
{
gtk_container_add (GTK_CONTAINER (buildable), GTK_WIDGET (child));
}